;;; GNU Guix --- Functional package management for GNU
;;;
;;; Copyright © 2021 florhizome <florhizome@posteo.net>
;;; Copyright © 2021 (unmatched parenthesis <paren@disroot.org>
;;;
;;; This file is not part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (guixrus packages freedesktop)
  #:use-module (guix build utils)
  #:use-module (guix gexp)
  #:use-module (guix git-download)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix packages)
  #:use-module (guix utils)
  #:use-module (gnu packages)
  #:use-module (gnu packages admin)
  #:use-module (gnu packages freedesktop)
  #:use-module (gnu packages gl)
  #:use-module (gnu packages linux)
  #:use-module (gnu packages pkg-config)
  #:use-module (gnu packages vulkan)
  #:use-module (gnu packages wm)
  #:use-module (gnu packages xdisorg)
  #:use-module (gnu packages xorg))

(define-public wlroots-for-wayfire
  (let ((commit "fdf3169b4185dad34b01b62762a0218f1412897f")
        (version "0.14.1")
        (revision "1"))
    (package
     (inherit wlroots)
     (name "wlroots-for-wayfire")
     (version (git-version version revision commit))
     (source
      (origin
       (method git-fetch)
       (uri
	(git-reference
         (url "https://gitlab.freedesktop.org/wlroots/wlroots.git")
         (commit commit)))
       (sha256
	(base32 "01hyai873wj42qkkjnpds4lba8xdhbxbr9zi6hafd4ars6kjpw9w"))))
     (native-inputs
      (list
       pkg-config))
     (inputs
      (list
       libdrm
       vulkan-headers
       vulkan-loader
       wayland
       wayland-protocols
       xorg-server-xwayland))
     (propagated-inputs
      (list
       eudev
       libinput
       libxcb
       libxkbcommon
       mesa
       pixman
       seatd
       xcb-util
       xcb-util-errors
       xcb-util-renderutil
       xcb-util-wm)))))

